<div class="alert alert-danger" [hidden]="!error">
  There was a problem logging in. Please try again.
</div>
<form #articleForm="ngForm" class="form-horizontal">
  <div class="form-group">
    <div class="col-sm-10">
      <input type="input" name="username" [(ngModel)]="user.username" class="form-control" id="inputEmail3" placeholder="用户名">
    </div>
  </div>
  <div class="form-group">
    <div class="col-sm-10">
      <input type="input"  name="password" [(ngModel)]="user.password" class="form-control" id="inputPassword3" placeholder="密码">
    </div>
  </div>
  <div class="form-group">
    <div class="col-sm-10">
    <button (click)="login()"  type="button" class="btn btn-primary form-control" style="background-color: #bd7d59">提交</button>
    </div>
  </div>
</form>
